What compiler are you using...

If it's not going past 16 bits I'm guessing you're using some old DOS version of Turbo C... which has been obsolete for more than a decade.

Grab a newer compiler... Pelles C is a good choice. When you download it spend some time in the help file and learn what's going on before you do any coding... In particular look up the tutorial on making your first project.